#include <algorithm>
#include <iostream>
using namespace std;

int main() {
    string a = "this is a string";
    reverse(a.begin(), a.end());
    
    cout << a << endl;
    return 0;
}
